package src.chat;

import java.util.Date;

import src.User;

public class ChatMessage{

	private User   sender;
	private String content;
	private Date   date;

	public ChatMessage(User _sender, String _content){
		sender    = _sender;
		content   = _content;
		date      = new Date();
	}

	public User getSender(){
		return sender;
	}

	public long getSenderId(){
		return sender.getIdUser();
	}

	public String getSenderLogin(){
		return sender.getLoginUser();
	}

	public String getContent(){
		return content;
	}

	public Date getDate(){
		return date;
	}

	public void setSender(User sender) {
		this.sender = sender;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public void setDate(Date date) {
		this.date = date;
	}

}